﻿namespace ZGDisassembler.UI.Editor;

public partial class GetSpanDatas : Form
{
	public uint? PickNumber { get; set; } = null;

	public GetSpanDatas()
	{
		InitializeComponent();
		InitEvent();
		ControlEvent();
	}

	private void InitEvent()
	{

	}

	private void ControlEvent()
	{
		hex_check.CheckedChanged += delegate { numberPick.Hexadecimal = hex_check.Checked; };
		ok_btn.Click += Ok_btn_Click;
	}

	private void Ok_btn_Click(object? sender, EventArgs e)
	{
		PickNumber = (uint)numberPick.Value;
		Close();
	}
}
